package com.qiuyuliantu.base.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiuyuliantu.common.annotation.Excel;
import com.qiuyuliantu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 记账记录对象 qiu_accounting_record
 *
 * @author lmx
 * @date 2025-07-28
 */
public class QiuAccountingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 记账类型 */
    @Excel(name = "记账类型", dictType = "qiu_accounting_record_type",comboReadDict = true)
    private String recordType;

    /** 交易姓名 */
    @Excel(name = "交易姓名")
    private String borrower;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 借/还款方式 */
    @Excel(name = "借/还款方式", dictType = "qiu_borrow_return_method",comboReadDict = true)
    private String borrowReturnMethod;


    /** 借/还款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借/还款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowReturnTime;



    /** 说明 */
    @Excel(name = "说明")
    private String description;

    /** 昵称 */
    @Excel(name = "昵称")
    private String borrowerNick;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String borrowerPhone;



    /** 用户ID */
    private Long userId;

    /** 部门ID */
    private Long deptId;



    /** 删除标志 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBorrower(String borrower)
    {
        this.borrower = borrower;
    }

    public String getBorrower()
    {
        return borrower;
    }
    public void setBorrowerNick(String borrowerNick)
    {
        this.borrowerNick = borrowerNick;
    }

    public String getBorrowerNick()
    {
        return borrowerNick;
    }
    public void setBorrowReturnTime(Date borrowReturnTime)
    {
        this.borrowReturnTime = borrowReturnTime;
    }

    public Date getBorrowReturnTime()
    {
        return borrowReturnTime;
    }
    public void setBorrowReturnMethod(String borrowReturnMethod)
    {
        this.borrowReturnMethod = borrowReturnMethod;
    }

    public String getBorrowReturnMethod()
    {
        return borrowReturnMethod;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setRecordType(String recordType)
    {
        this.recordType = recordType;
    }

    public String getRecordType()
    {
        return recordType;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setBorrowerPhone(String borrowerPhone)
    {
        this.borrowerPhone = borrowerPhone;
    }

    public String getBorrowerPhone()
    {
        return borrowerPhone;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("borrower", getBorrower())
            .append("borrowerNick", getBorrowerNick())
            .append("borrowReturnTime", getBorrowReturnTime())
            .append("borrowReturnMethod", getBorrowReturnMethod())
            .append("description", getDescription())
            .append("recordType", getRecordType())
            .append("amount", getAmount())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("borrowerPhone", getBorrowerPhone())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
